home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_091 / adlrun / makefile < prev    next >
Makefile  |  1992-05-06  |  3KB  |  114 lines

  1. # The include directory
  2. INC = ../include
  3.  
  4. # The utilities directory
  5. UTL = ../util
  6.  
  7. # Places relating to the shar command;  B is the base from which to unpack;
  8. # D is the directory into which to unpack.
  9. # AR = shar -c -v
  10. AR = arch -c
  11. B = ..
  12. D = adlrun/
  13.  
  14. # Where adlrun will reside, after make install
  15. BIN = /va/cunniff/bin
  16.  
  17. # Flags for CC
  18. CFLAGS = -I${INC} -O
  19.  
  20. # Flags for the linker - you may need to change -lcurses to -ltermcap
  21. # or -ltermlib.
  22. LIBS = -lcurses
  23.  
  24. # Flags for lint.
  25. LFLAGS = ${DFLAGS} -DLINT -I${INC} -C
  26.  
  27.  
  28. # Utilities used by adlrun
  29. UTIL =    ${UTL}/virtmem.o    ${UTL}/vstring.o    ${UTL}/mytime.o
  30.  
  31. # Headers used in all adlrun source files
  32. HDRS =    ${INC}/adltypes.h    ${INC}/adlprog.h    ${INC}/adldef.h    \
  33.     ${INC}/adlrun.h        ${INC}/builtins.h    ${INC}/virtmem.h \
  34.     ${INC}/vstring.h
  35.  
  36. # The adlrun object files
  37. OBJS =    adlarith.o    adldwim.o    adlfuncs.o    adlintrn.o    \
  38.     adlmach.o    adlmacro.o    adlmiscr.o    adlobjr.o    \
  39.     adlrun.o    adlspec.o    adlstr.o    adltrans.o    \
  40.     rtlex.o        rtparse.o    adlerr.o    adlscrn.o    \
  41.     rtdict.o    rtglob.o
  42.  
  43. all        : adlrun
  44.  
  45. shar        : adlrun1.shar    adlrun2.shar
  46.  
  47. adlrun1.shar    : README    COPYRIGHT    Makefile    adlarith.c \
  48.           adldwim.c    adlerr.c    adlfuncs.c    adlintrn.c \
  49.           adlmach.c    adlmacro.c    adlmiscr.c    adlobjr.c \
  50.           adlrun.c
  51.     ( cd ${B} ; ${AR} \
  52.         ${D}README    ${D}COPYRIGHT    ${D}Makefile    ${D}adlarith.c \
  53.         ${D}adldwim.c    ${D}adlerr.c    ${D}adlfuncs.c    ${D}adlintrn.c \
  54.         ${D}adlmach.c    ${D}adlmacro.c    ${D}adlmiscr.c    ${D}adlobjr.c \
  55.         ${D}adlrun.c \
  56.     > ${D}adlrun1.shar )
  57.  
  58. adlrun2.shar    : adlscrn.c    adlspec.c    adlstr.c    adltrans.c \
  59.           rtdict.c    rtglob.c    rtlex.c        rtparse.c
  60.     ( cd ${B} ; ${AR} \
  61.         ${D}adlscrn.c    ${D}adlspec.c    ${D}adlstr.c    ${D}adltrans.c \
  62.         ${D}rtdict.c    ${D}rtglob.c    ${D}rtlex.c    ${D}rtparse.c \
  63.     > ${D}adlrun2.shar )
  64.  
  65. install        : adlrun
  66.     strip adlrun
  67.     cp adlrun ${BIN}
  68.     chmod 755 ${BIN}/adlrun
  69.  
  70. lint        :
  71.     lint ${LFLAGS} *.c ${UTL}*.c
  72.  
  73. clean        :
  74.     rm -f ${OBJS} core adlrun1.shar adlrun2.shar adlrun
  75.  
  76. adlrun        : ${OBJS} ${UTIL}
  77.     cc -o adlrun ${OBJS} ${UTIL} ${LIBS}
  78.  
  79. adlerr.o    : adlerr.c    ${HDRS}
  80.  
  81. adlarith.o    : adlarith.c    ${HDRS}
  82.  
  83. adldwim.o    : adldwim.c    ${HDRS}
  84.  
  85. adlfuncs.o    : adlfuncs.c    ${HDRS}
  86.  
  87. adlintrn.o    : adlintrn.c    ${HDRS}
  88.  
  89. adlmach.o    : adlmach.c    ${HDRS}
  90.  
  91. adlmacro.o    : adlmacro.c    ${HDRS}
  92.  
  93. adlmiscr.o    : adlmiscr.c    ${HDRS}
  94.  
  95. adlobjr.o    : adlobjr.c    ${HDRS}
  96.  
  97. adlrun.o    : adlrun.c    ${HDRS}
  98.  
  99. adlscrn.o    : adlscrn.c    ${HDRS}
  100.  
  101. adlspec.o    : adlspec.c    ${HDRS}
  102.  
  103. adlstr.o    : adlstr.c    ${HDRS}
  104.  
  105. adltrans.o    : adltrans.c    ${HDRS}
  106.  
  107. rtlex.o        : rtlex.c    ${HDRS}
  108.  
  109. rtparse.o    : rtparse.c    ${HDRS}
  110.  
  111. rtdict.o    : rtdict.c    ${HDRS}
  112.  
  113. rtglob.o    : rtglob.c    ${HDRS}
  114.